home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / applied / catch_tell < prev    next >
Text File  |  2001-06-04  |  870b  |  22 lines

  1. SYNOPSIS
  2.         void catch_tell(string)
  3.  
  4. DESCRIPTION
  5.         When a message is sent to an non-interactive object, via say(),
  6.         tell_object, tell_room() or write(), it will get to the function
  7.         catch_tell(string). The idea is to enable communications between
  8.         NPCs and from a user to an NPC.
  9.         
  10.         Messages sent to an interactive object are also passed to that
  11.         object's catch_tell() lfun, _if it has one_. If the receiver
  12.         (or one of its shadows) doesn't have that lfun, the text is sent
  13.         to the socket directly. Only messages sent by an interactive
  14.         object to itself is always written to the socket immediately.
  15.  
  16.         This allows to filter and process text before it is written
  17.         to a player.
  18.  
  19. SEE ALSO
  20.         enable_commands(E), say(E), tell_object(E), tell_room(E),
  21.         write(E), catch_msg(A)
  22.